<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/taglib.jsp" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<script src="${pageContext.request.contextPath }/js/mztreeview2/jsframework.js"></script>

</head>

<body>
  <div style="padding: 5px;">
  <div>	
  <input class="buttonface" type="button" value="展开" onClick="a.expandAll('1')" />
  <input class="buttonface" type="button" value="合并" onClick="a.collapseAll('1')" />
  
  </div>
  <div style="margin-top: 10px;">
  <SCRIPT LANGUAGE="JavaScript">
  var data={};
  data["-1_1"] = "text: OA办公自动化;";
  data["1_10"] = "text: 行政管理; ";
  data["10_100"] = "text: 请假管理; target: mainFrame;";
  data["100_1000"] = "text: 未审批; url: ${pageContext.request.contextPath}/work/leave!findPage.action?status=<s:property value="@com.soft.core.utils.StatusEnum@unstart.value"/>; target: mainFrame;";
  data["100_1001"] = "text: 审批中; url: ${pageContext.request.contextPath}/work/leaveStarted!findPage.action?status=<s:property value="@com.soft.core.utils.StatusEnum@start.value"/>; target: mainFrame;";
  data["100_1002"] = "text: 审批结束; url: ${pageContext.request.contextPath}/work/leaveFinished!findPage.action?status=<s:property value="@com.soft.core.utils.StatusEnum@finished.value"/>; target: mainFrame;";
  data["100_1003"] = "text: 历史记录; url: ${pageContext.request.contextPath}/work/leaveFinished!findPage.action?queryByAllUser=true&status=<s:property value="@com.soft.core.utils.StatusEnum@finished.value"/>; target: mainFrame;";  
  data["10_101"] = "text: 报销管理; target: mainFrame;";
  data["101_1010"] = "text: 未审批; url: ${pageContext.request.contextPath}/work/expense!findPage.action?status=<s:property value="@com.soft.core.utils.StatusEnum@unstart.value"/>; target: mainFrame;";
  data["101_1011"] = "text: 审批中; url: ${pageContext.request.contextPath}/work/expenseStarted!findPage.action?status=<s:property value="@com.soft.core.utils.StatusEnum@start.value"/>; target: mainFrame;";
  data["101_1012"] = "text: 审批结束; url: ${pageContext.request.contextPath}/work/expenseFinished!findPage.action?status=<s:property value="@com.soft.core.utils.StatusEnum@finished.value"/>; target: mainFrame;";
  data["101_1013"] = "text: 历史记录; url: ${pageContext.request.contextPath}/work/expenseFinished!findPage.action?queryByAllUser=true&status=<s:property value="@com.soft.core.utils.StatusEnum@finished.value"/>; target: mainFrame;";  

  data["1_20"] = "text: 工作流管理; ";
  data["20_200"] = "text: 代办任务; url: ${pageContext.request.contextPath}/process/task!findPage.action; target: mainFrame;";
  data["20_201"] = "text: 流程定义; url: ${pageContext.request.contextPath}/process/definition!findPage.action; target: mainFrame;";
  data["20_202"] = "text: 流程实例; url: ${pageContext.request.contextPath}/process/instance!findPage.action; target: mainFrame;";
  data["20_203"] = "text: 历史流程; url: ${pageContext.request.contextPath}/process/history!findPage.action; target: mainFrame;";
  
  data["1_30"] = "text: 系统管理; ";
  data["30_300"] = "text: 资源管理; url: ${pageContext.request.contextPath}/security/resource!findPage.action; target: mainFrame;";
  data["30_301"] = "text: 角色管理; url: ${pageContext.request.contextPath}/security/role!findPage.action; target: mainFrame;";
  data["30_302"] = "text: 用户管理; url: ${pageContext.request.contextPath}/security/user!findPage.action; target: mainFrame;";
  data["30_303"] = "text: 部门管理; url: ${pageContext.request.contextPath}/security/dept!findPage.action; target: mainFrame;";
  data["30_304"] = "text: 职位管理; url: ${pageContext.request.contextPath}/security/job!findPage.action; target: mainFrame;";
  
  Using("System.Web.UI.WebControls.MzTreeView");
  var a = new MzTreeView();
  a.dataSource = data;

  a.rootId="1";
  a.autoSort=false;
  a.useCheckbox=false;
  a.canOperate=true;
  document.write(a.render());
  a.expandLevel(1);
  </SCRIPT>
  </div>
  </div>
</body>
</html>
